package com.Helper;

public class ConnectInfo 
{
	// leaving at edmonton
	public FlightInfo leavingInfo;
	
	// arriving at edmonton
	public FlightInfo arrivingInfo;
	
	public String getBothFlightID()
	{
		String s = arrivingInfo.flightID + "/" + leavingInfo.flightID;
		return s;
	}
	
	public String getFlightID1()
	{
		return arrivingInfo.flightID;
	}
	
	public String getFlightID2()
	{
		return leavingInfo.flightID;
	}
	
	public String getAirline1()
	{
		return arrivingInfo.airline;
	}
	
	public String getAirline2()
	{
		return leavingInfo.airline;
	}
	
	public String getDate1()
	{
		return arrivingInfo.departureTime;
	}
	
	public String getDate2()
	{
		return leavingInfo.departureTime;
	}
	
	public String getDepartureLocation1()
	{
		return arrivingInfo.departureLocation;
	}
	
	public String getDepartureLocation2()
	{
		return leavingInfo.departureLocation;
	}
	
	public String getArrivalLocation1()
	{
		return arrivingInfo.arrivalLocation;
	}
	
	public String getArrivalLocation2()
	{
		return leavingInfo.arrivalLocation;
	}
		
	public String getTotalPrice()
	{
		float price = arrivingInfo.price + leavingInfo.price;
		String sPrice = Float.toString(price);
		return sPrice;
	}
	
	public String getSeatsLeft1()
	{
		String s = Integer.toString(arrivingInfo.seatsLeft);
		return s;
	}
	
	public String getSeatsLeft2()
	{
		String s = Integer.toString(leavingInfo.seatsLeft);
		return s;
	}
}
